<?php
interface XSocket{
	public function bind($localhost = 'localhost', $port = 0);
	public function close();
	public function connect($host, $port);
	public function getInetAddress();
	public function getLocalAddress();
	public function getLocalPort();
	public function getPort();
	public function isBound();
	public function isClosed();
	public function isConnected();
}
?>